Skip to content

Instantly share code, notes, and snippets.

@MoienTajik
MoienTajik / iranian-phone-numbers-regex.md
Last active May 20, 2024 10:12
Regex For Iranian Mobile Phone Numbers

Regex For Iranian Phone Numbers

This regex supports all kinds of Iranian mobile phone numbers :

^(\+98|0)?9\d{9}$


Regex Visualized

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 20, 2024 10:10
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@bmatcuk
bmatcuk / create-usb.sh
Created May 30, 2019 04:38
Creating a Bootable Windows USB from ISO on a Mac
# First, we need to find our device. BEFORE inserting your USB drive, run the
# following:
diskutil list
# This will output a bunch of info about all of the disk drives connected to
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is
# some number starting at 0. Now, insert your USB drive and run the command
# again. You should see a new entry. Make note of the name (ie, /dev/diskX).
diskutil list
@thesamprice
thesamprice / RemoveDuplicates.scpt
Created October 9, 2019 15:12
Removes duplicate emails from MS outlook on mac.
-- Remove Duplicate Message v2.1
-- An Applescript based on code by Barry Wainwright, 15th October 2010
-- Detects and deletes duplicate messages within a selected folder
-- works on Message-ID header - uniquely identifying duplicates
-- Version History
-- v1.0 - 2002-03-18: First Release (For Microsoft Entourage)
-- v2.0 - 2010-10-07: modified to work with Microsoft Outlook for Mac
-- v2.1 - 2010-10-15: added final dialog to summarise messages removed
-- v2.2 - 2019-10-05: Added progress bar. (Sam Price)
@KelSolaar
KelSolaar / barten.py
Created January 31, 2019 19:38
Contrast Sensitivity Function - Barten (1999)
# https://pure.tue.nl/ws/files/1613279/9901043.pdf
#http://car.france3.mars.free.fr/Formation%20INA%20HD/HDTV/HDTV%20%202007%20v35/SMPTE%20normes%20et%20confs/Contrastm.pdf
# %%
from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
from colour.utilities import as_float_array
from colour.plotting import colour_style, plot_single_function
@Shadows-of-Fire
Shadows-of-Fire / 10_CompoundTag.js
Last active May 20, 2024 09:59
Gateways To Eternity JSON Schema
"string" // [Mandatory] || Mojangson string representation of a Compound Tag -- See https://github.com/aramperes/Mojangson for spec
OR
Object // [Mandatory] || Object representation of a Compound Tag, which is just write a JSON object that maps to your desired nbt.
// A string representation of CompoundTag implies -> "nbt": "{Data:0}"
// The object representation implies -> "nbt": { "Data": 0 }
// Either form is valid, and the object form is easier.
@akabe1
akabe1 / frida_multiple_unpinning.js
Last active May 20, 2024 09:59
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f <APP_ID> -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function() {
Java.perform(function() {
console.log('');
@bsara
bsara / git-ssh-auth-win-setup.md
Last active May 20, 2024 09:58
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@MrHallows
MrHallows / fastboot_help.md
Last active May 20, 2024 09:58
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing:
@durkinza
durkinza / dmginstall.sh
Last active May 20, 2024 09:57 — forked from afgomez/dmginstall.sh
Download and install a .dmg
#!/bin/bash --login
# Downloads and installs a .dmg from a URL
#
# Usage
# $ dmginstall [url]
#
# For example, for installing wireshark version 3.0.2
# $ dmginstall https://1.na.dl.wireshark.org/osx/Wireshark%203.0.2%20Intel%2064.dmg
# or for firefox version 68.0